//
//  UILabel+computeheight.h
//  ebook
//
//  Created by lj on 14-6-20.
//  Copyright (c) 2014年 cczone. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^labelSizeAndTextBlk)(CGSize size , NSAttributedString *text);

@interface UILabel (computeheight)

+(CGFloat)CompareTextHeight:(UILabel *)label;
+(CGSize)CompareTextSize:(NSString*)text Size:(CGSize)size FontSize:(CGFloat)fontSize;
+(CGFloat)CompareTextHeight:(NSString*)text Width:(CGFloat)width FontSize:(CGFloat)fontSize Lines:(int)lines;
+(CGFloat)CompareTextWidth:(NSString*)text andFontSize:(CGFloat)fontSize;
+(CGSize)getSizeWithText:(UILabel *)label andLabelWidth:(CGFloat)labelWidth;
+(void)getSizeWithText:(NSString *)text numberOfLine:(int)number labelWidth:(CGFloat)width heightLine:(CGFloat)heightLine headerLine:(CGFloat)headerLine labelInfo:(labelSizeAndTextBlk)labelInfo;
@end
